<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/inc/taglibs.jsp"%>
<form id="pagerForm" method="post" action="/admin/userMessageDmReceiver/userList">
	<input type="hidden" id="pageNum" name="pageNum" value="${null == pageTurn.page?1:pageTurn.page }" />
	<input type="hidden" name="numPerPage" value="${numPerPage }" />
	<input type="hidden" value="${eqId}" name="eqId" />
	<input type="hidden" value="${eqTagName}" name="eqTagName" />
	<input type="hidden" value="${gtCreateDate}" name="gtCreateDate" />
	<input type="hidden" value="${ltCreateDate}" name="ltCreateDate" />
	<input type="hidden" value="${rel==null ? parentRel : rel}" name="parentRel">
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return dwzSearch(this, 'dialog');" action="/admin/userMessageDmReceiver/userList.do?eqDmId=${eqDmId}" method="post">
	<input type="hidden" value="${rel==null ? parentRel : rel}" name="parentRel">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					用户ID: <input type="text" value="${eqId}" name="eqId"></input>
				</td>
				<td>
					用户名: <input type="text" value="${likeAccountName}" onBlur="$(this).val(jQuery.trim($(this).val()));" name="likeAccountName" ></input>
				</td>
				<td>
					手机号码: <input type="text" value="${eqPhone}" onBlur="$(this).val(jQuery.trim($(this).val()));" name="eqPhone" ></input>
				</td>
				<td>
					邮     箱: <input type="text" value="${eqEmail}" onBlur="$(this).val(jQuery.trim($(this).val()));" name="eqEmail" ></input>
				</td>
			</tr>
			<tr>
				<td colspan="4">
					<table><tr>
							<td>注册时间:</td>
							<td>
								<input type="text" value="${gtCreateDate}" name="gtCreateDate" class="date" dateFmt="yyyy-MM-dd" readonly="true" style="float:left;"/>
								<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
							</td>
							<td>~</td>
							<td>
								<input type="text" value="${ltCreateDate}" name="ltCreateDate" class="date" dateFmt="yyyy-MM-dd" readonly="true" style="float:left;"/>
								<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
							</td>
					</tr></table>
				</td>
				<td>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
				</td>
			</tr>
		</table>
	</div>
	</form>

</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${path }/admin/userMessageDmReceiver/userSave.do?dmId=${eqDmId}" target="selectedTodo" rel="ids" title="确定添加?" targetType="dialog"><span>添加</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="150" targetType="dialog">
		<thead>
			<tr>
				<th><input type="checkbox" class="checkboxCtrl" group="ids" targetType="dialog"></th>
				<th>用户ID</th>
				<th>用户名</th>
				<th>用户身份</th>
				<th>性别</th>
				<th>邮箱</th>
				<th>邮箱有效性</th>
				<th>手机</th>
				<th>手机有效性</th>
				<th>注册时间</th>
			</tr>
		</thead>
		<tbody>
				<c:choose>
					<c:when test="${null==userBaseAccountInfoList||userBaseAccountInfoList.isEmpty()}">
						<tr class="tatr2">
							<td colspan="11" align="center">暂无数据</td>
						</tr>
					</c:when>
					<c:otherwise>
						<c:forEach var="user" items="${userBaseAccountInfoList}">
							<tr>
								<td><input type="checkbox" name="ids" id="ids" value="${user.id}:;${user.accountName}" targetType="dialog"/></td>
								<td>${user.id}</td>
								<td>${user.accountName}</td>	
								<td>${null == user.userType ? '普通用户':userTypeMap.get(user.userType)}</td>
								<td>${user.sex == 2 ? '女':'男'}</td>
								<td>${user.email}</td>
								<td>${user.isEmailValid == 1 ? '已验证':'未验证'}</td>
								<td>${user.phone}</td>
								<td>${user.isPhoneValid == 1 ? '已验证':'未验证'}</td>
								<td>${ucenter:dateFormat(user.createTime,"yyyy-MM-dd") }
							</tr>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</tbody>
		</table>
	</div>
	<div style="clear:both"></div>
    <div class="panelBar">
        <%@ include file="/inc/admin_pagination.jsp" %>
    </div>